package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author pan
 * @since 2020-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmEarlyWarningTypeParam对象", description="")
public class CrmEarlyWarningTypeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "服务器IP端口地址")
    @TableField("ip_port_address")
    private String ipPortAddress;

    @ApiModelProperty(value = "平台服务器名称")
    @TableField("platform_server_name")
    private String platformServerName;

    @ApiModelProperty(value = "公众号名称")
    @TableField("gzh_name")
    private String gzhName;


    @ApiModelProperty(value = "公众号域名")
    @TableField("gzh_domain")
    private String gzhDomain;

    @ApiModelProperty(value = "预警类型ID")
    @TableField("early_warning_type_id")
    private Long earlyWarningTypeId;

    @ApiModelProperty(value = "模板内容")
    @TableField("context")
    private String context;

    @ApiModelProperty(value = "服务器请求接口")
    @TableField("server_api")
    private String serverApi;

    @ApiModelProperty(value = "平台key，微信key或阿里key")
    @TableField("platform_key")
    private String platformKey;

    @ApiModelProperty(value = "平台secret")
    @TableField("platform_secret")
    private String platformSecret;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
